﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Guedes_Library;
using System.Data;

/// <summary>
/// Summary description for ProdutoGrupoModal
/// </summary>
public class ComentarioModal : GuedesModel<coments>
{
    public ComentarioModal()
	{
		//
		// TODO: Add constructor logic here
		//
	}


    public List<coments> getAll()
    {

        return SelectAll();
    }


    public override void DoChanges(coments entity, coments novo)
    {
        entity.ID= novo.ID;
        entity.ID_Prod = novo.ID_Prod;
        entity.Name = novo.Name;
        entity.Permission = novo.Permission;
        entity.Txt = novo.Txt;
        entity.Rating = novo.Rating;
    }



    public override string GetTabela()
    {
        return "guedesEntities.coments";
    }

    public override string GetKeyTabela()
    {
        return "ID";
    }
}